<%-- 
    Document   : novo
    Created on : 08/11/2008, 18:22:49
    Author     : Alan Almeida
--%>

<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%@taglib prefix="f" uri="http://java.sun.com/jsf/core" %>
<%@taglib prefix="h" uri="http://java.sun.com/jsf/html" %>
<%@taglib prefix="x" uri="http://java.sun.com/jsp/jstl/xml" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib prefix="a4j" uri="http://richfaces.org/a4j" %>  
<%@taglib prefix="rich" uri="http://richfaces.org/rich" %>

<f:view>
    <html>
        <head>
            <title><h:outputText value="#{msg['page.login.title']}" /></title>
            <link rel="stylesheet" type="text/css" href="./css/estilo.css">
        </head>
        <body>    
            <div>
                <h:form>
                    <rich:panel style="width: 300px;" styleClass="fonte">
                        <f:facet name="header">
                            <h:graphicImage value="./image/group_key.png" />
                        </f:facet>
                        <h:panelGrid columns="2">
                            <h:outputLabel for="edtEmail" value="#{msg['page.login.label.email']}" />
                            <h:inputText id="edtEmail" value="#{loginDAO.usuario.email}" maxlength="25" size="25"
                                required="true" styleClass="input" />

                            <h:outputLabel for="edtPassword" value="#{msg['page.login.label.password']}" />
                            <h:inputSecret id="edtPassword" value="#{loginDAO.usuario.password}" maxlength="25" size="25"
                                required="true" styleClass="input" />
                        </h:panelGrid>
                        <h:commandButton id="btnEntrar" value="#{msg['page.login.button.entrar']}" style="width: 20%;"
                            action="#{loginDAO.autenticarUsuario}" />
                    </rich:panel>
                </h:form>
                <h:form>
                    <h:commandLink id="lnkNovo" value="#{msg['page.login.button.novo']}" action="#{loginDAO.pageConvidado}" />
                </h:form>
            </div>
        </body>
    </html>
</f:view>
